package com.blank.task08;

public class NetPackage extends AbstractPackage implements NetService {

    private double netFlow;
    public NetPackage() {
    }

    public NetPackage(double monthlyRates,double netFlow) {
      super(monthlyRates);
      setNetFlow(netFlow);
    }

    public double getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(double netFlow) {
        this.netFlow = netFlow;
    }

    @Override
    public void showPackageInfo() {
        System.out.println("上网流量为:"+getNetFlow()+"每月资费"+getMonthlyRates());
    }

    @Override
    public void NetShow(double netFlow, PhoneCard phoneCard) {
        System.out.println("上网流量为:"+netFlow+"卡的用户名"+phoneCard.getUserName());
    }
}
